package mysql

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	Name    string `gorm:"type:varchar(20);not null;index:ip_idx commit:'商品名称'"`
	Img     string `gorm:"type:varchar(255);not null;index:ip_idx commit:'商品图片'"`
	Number  string `gorm:"type:varchar(20);not null;index:ip_idx commit:'商品编号'"`
	Price   string `gorm:"type:varchar(20);not null;index:ip_idx commit:'商品价格'"`
	UserId  string `gorm:"type:varchar(20);not null;index:ip_idx commit:'用户ID'"`
	Details string `gorm:"type:varchar(20);not null;index:ip_idx commit:'审批详情'"`
	Title   string `gorm:"type:varchar(20);not null;index:ip_idx commit:'商品标题'"`
	Text    string `gorm:"type:varchar(20);not null;index:ip_idx commit:'商品描述'"`
}
